<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var hots = {playlists:[1,2,3]};
        var news = { playlists: [4, 5, 6] };
        var djs = { playlists: [7, 8, 9] };
        var musics = [];
        var arr = [{hots},{news},{djs}];
        arr.forEach(item=>{
            console.log(item)
            var key = Object.keys(item)[0];
            var val = Object.values(item)[0];
            musics[key] = {
                title:key,
                res:val
            }
        })
        console.log(musics)
    </script>
</body>
</html>